﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSP.Common.IProviders;
using CSP.Common.Providers;

namespace CSP.Common.Factories
{
    public class OtherApiFactory
    {

        /// <summary>
        /// 获取新浪微博API
        /// </summary>
        /// <returns></returns>
        public static OtherApiProvider GetSinaApi()
        {
            OtherApiProvider apiProvider = new SinaApiProvider();
            return apiProvider;
        }

        /// <summary>
        /// 获取QQ互联API
        /// </summary>
        /// <returns></returns>
        public static OtherApiProvider GetQQConnectApi()
        {
            OtherApiProvider apiProvider = new QQConnectApiProvider();
            return apiProvider;
        }

        /// <summary>
        /// 获取腾讯微博
        /// </summary>
        /// <returns></returns>
        public static OtherApiProvider GetTencentWeiBoApi() 
        {
            OtherApiProvider apiProvider = new TencentWeiBoApiProvider();
            return apiProvider;
        }

        /// <summary>
        /// 人人API
        /// </summary>
        /// <returns></returns>
        public static OtherApiProvider GetRenRenApi()
        {
            OtherApiProvider apiProvider = new RenRenApiProvider();
            return apiProvider;
        }
    }
}
